<%--
	author:daniel.yan
	time:2012-5-6 22:25:16
--%>
<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>用户申请</title>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="${ctx}/themes/css/default/frame.css" />
<script type="text/javascript" language="javascript">
var ctx = "${ctx}";
</script>
<script type="text/javascript" src="${ctx}/js/jquery/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery/jquery.validate.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery/jquery.validate.messages_cn.js"></script>
<script type="text/javascript" src="${ctx}/js/util/towker.js"></script>
<script type="text/javascript" src="${ctx}/js/include/add.js"></script>
<script type="text/javascript" src="${ctx}/js/page/mask/mask.js"></script>
<script type="text/javascript" src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(function(){
	$(".form_title").css("width", "20%");
	jQuery("#dataForm").validate(
	{
		rules: {
			account : {
				required: true
			},
			name : {
				required: true
			},
			dateOfBirth : {
				required: true
			}
		},
		messages: {
			account : {
				required: "请填写用户名"
			}
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
	$("#s_save").click(function(){
		$("#dataForm").submit();
	});
});
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};

//刷新树节点
_callback=function()
{

}

</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title"><font color="blue">用户申请</font> <a href="${ctx}">返回</a></td>
		<td>
			<div class="menuTool">
				<a class="save" id="s_save" href="#">提交申请</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="reg2.htm">
	<table border="0" cellspacing="1" cellpadding="0" class="listTable">
		<tr>
			<td class="form_title">用户名（昵称）：</td>
			<td class="form_input">
				<input type="text" id="account" name="account" value="" style="border: 1px solid #999999;"/>
			</td>
		</tr>
		<tr>
			<td class="form_title"> 真实姓名：</td>
			<td class="form_input">
				<input type="text" id="name" name="name" value="" style="border: 1px solid #999999;"/>
			</td>
		</tr>
		<tr>
		  <td class="form_title">出生日期：</td>
		  <td class="form_input"><input type="text" name="dateOfBirth" id="dateOfBirth" readonly="readonly" class="Wdate" onFocus="WdatePicker({isShowWeek:true})"></td>
	  </tr>
		<tr>
		  <td class="form_title">性别：</td>
		  <td class="form_input"><input name="gender" type="radio" id="gender1" value="1" checked>
	      男
	        <input type="radio" name="gender" id="gender2" value="2">
	      女</td>
	  </tr>
		<tr>
		  <td class="form_title">用户性质：</td>
		  <td class="form_input"><select name="userNature" id="userNature">
		    <option value="1">公司员工</option>
            <option value="2">经销商或客户</option>
	      </select></td>
	  </tr>
		<tr>
		  <td class="form_title">公司名称：</td>
		  <td class="form_input"><input type="text" name="coName" id="coName" size="100" ></td>
	  </tr>
		<tr>
		  <td class="form_title">部门：</td>
		  <td class="form_input"><input type="text" name="deptName" id="deptName" ></td>
	  </tr>
		<tr>
		  <td class="form_title">职位：</td>
		  <td class="form_input"><input type="text" name="duty" id="duty"></td>
	  </tr>
		<tr>
		  <td class="form_title">手机号码：</td>
		  <td class="form_input"><input type="text" name="mobile" id="mobile"></td>
	  </tr>
		<tr>
		  <td class="form_title">办公电话：</td>
		  <td class="form_input"><input type="text" name="phone" id="phone"></td>
	  </tr>
		<tr>
		  <td class="form_title">传真：</td>
		  <td class="form_input"><input type="text" name="fax" id="fax"></td>
	  </tr>
		<tr>
		  <td class="form_title">EMAIL：</td>
		  <td class="form_input"><input type="text" name="email" id="email"></td>
	  </tr>
	</table>
</form>
</body>
</html>
